<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统配置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/layui/css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/bootstrap/css/bootstrap.css" media="all">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/global.css" media="all">
  <link rel="stylesheet" type="text/css" href="__ADMIN__/css/personal.css" media="all">
  <script type="text/javascript" src="__ADMIN__/jedate/jquery-1.7.2.js"></script>
</head>
<body>
  <form class="layui-form col-lg-5" action="/admin/config/edit" method="post">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
      <ul class="layui-tab-title">
        <li class="layui-this">站点配置</li>
        <li class="">手机版配置</li>
        <li class="">核心配置</li>
        <li class="">邮箱配置</li>
        <li class="">上传配置</li>
      </ul>
      <div class="layui-tab-content">
      <volist name="list_config" id="list_config">
        <div class="layui-tab-item layui-show">
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>网站名称</label>
            <div class="layui-input-block">  
              <input type="text" name="name"  value="{$list_config['name']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>站点域名</label>
            <div class="layui-input-block">  
              <input type="text" name="url" value="{$list_config['url']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>网站标题</label>
            <div class="layui-input-block">  
              <input type="text" name="title" value="{$list_config['title']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>站点关键字</label>
            <div class="layui-input-block">  
              <input type="text" name="keywords" value="{$list_config['keywords']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">站点描述</label>
            <div class="layui-input-block">  
              <input type="text" name="description" value="{$list_config['description']}" autocomplete="off"  placeholder="请输入" class="layui-textarea" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>网站版权</label>
            <div class="layui-input-block">  
              <input type="text" name="copyright" value="{$list_config['copyright']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>联系电话</label>
            <div class="layui-input-block">  
              <input type="text" name="telephone" value="{$list_config['telephone']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>联系地址</label>
            <div class="layui-input-block">  
              <input type="text" name="address" value="{$list_config['address']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>模板选择</label>
            <div class="layui-input-block">  
              <input type="text" name="template" value="{$list_config['template']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>

          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </div>
        <div class="layui-tab-item">
          <div class="layui-form-item">
              <label class="layui-form-label">网站名称</label>
              <div class="layui-input-block">  
                <input type="text" name="m_name" value="{$list_config['m_name']}" autocomplete="off"  placeholder="请输入" class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">站点域名</label>
              <div class="layui-input-block">  
                <input type="text" name="m_url" value="{$list_config['m_url']}" autocomplete="off"  placeholder="请输入" class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">网站标题</label>
              <div class="layui-input-block">  
                <input type="text" name="m_title" value="{$list_config['m_title']}" autocomplete="off"  placeholder="请输入" class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">站点关键字</label>
              <div class="layui-input-block">  
                <input type="text" name="m_keywords" value="{$list_config['m_keywords']}" autocomplete="off"  placeholder="请输入" class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">站点描述</label>
              <div class="layui-input-block">  
                <input type="text" name="m_description" value="{$list_config['m_description']}" autocomplete="off"  placeholder="请输入" class="layui-textarea">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label"><font color="red">*</font>是否开启手机站</label>
              <div class="layui-input-block">
              <if condition="$list_config['is_moble']">
                <input type="radio" name="is_moble" value="1" title="是" checked>
                <input type="radio" name="is_moble" value="0" title="否">
              <else/>  
                <input type="radio" name="is_moble" value="1" title="是">
                <input type="radio" name="is_moble" value="0" title="否" checked>
              </if>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">模板选择</label>
              <div class="layui-input-block">  
                 <input type="text" name="m_template" value="{$list_config['m_template']}" autocomplete="off"  placeholder="请输入" class="layui-input" >
              </div>
            </div>
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
            </div>  
        </div>
        <div class="layui-tab-item" >
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>关闭网站</label>
            <div class="layui-input-block">
            <if condition="$list_config['is_close'] eq 1">
              <input type="radio" name="is_close" value="1" title="是" checked>
              <input type="radio" name="is_close" value="0" title="否">
            <else/>
              <input type="radio" name="is_close" value="1" title="是">
              <input type="radio" name="is_close" value="0" title="否" checked>
            </if>  
              
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">关闭原因</label>
            <div class="layui-input-block">  
              <input type="text" name="close_reason" value="{$list_config['close_reason']}" autocomplete="off"  placeholder="请输入" class="layui-textarea" >
            </div>
          </div>
          <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
          </div> 
        </div>
        <div class="layui-tab-item" > 
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>发送邮箱地址</label>
            <div class="layui-input-block">  
              <input type="text" name="e_address" value="{$list_config['e_address']}" lay-verify="email" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>发送人名称</label>
            <div class="layui-input-block">  
              <input type="text" name="e_name" value="{$list_config['e_name']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>SMTP服务器</label>
            <div class="layui-input-block">  
              <input type="text" name="e_SMTP" value="{$list_config['e_smtp']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>服务器端口号</label>
            <div class="layui-input-block">  
              <input type="text" name="e_port" value="{$list_config['e_port']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>邮箱账号</label>
            <div class="layui-input-block">  
              <input type="text" name="e_username" value="{$list_config['e_username']}" lay-verify="email" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>邮箱密码</label>
            <div class="layui-input-block">  
              <input type="password" name="e_password" value="{$list_config['e_password']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </div>
        <div class="layui-tab-item" >  
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>缩略图尺寸</label>
            <div class="layui-input-block">  
              <input type="text" name="thumbsize" value="{$list_config['thumbsize']}" lay-verify="required" autocomplete="off"  placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><font color="red">*</font>是否开启水印</label>
            <div class="layui-input-block"> 
              <if condition="$list_config['is_water'] eq 1"> 
                <input type="radio" name="is_water" value="1" title="是" checked>
                <input type="radio" name="is_water" value="0" title="否">
              <else/>
                <input type="radio" name="is_water" value="1" title="是">
                <input type="radio" name="is_water" value="0" title="否" checked>
              </if>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">水印相关设置</label>
            <div class="layui-input-block">  
              <input type="text" name="watermark" value="{$list_config['watermark']}" autocomplete="off" placeholder="请输入" class="layui-input" >
            </div>
          </div>
          <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
          </div> 
        </div>
        </volist>
      </div>
    </div> 
  </form>
<script src="__ADMIN__/layui/layui.js" charset="utf-8"></script>
<script>
layui.use('element', function(){
  var $ = layui.jquery
  ,element = layui.element(); //Tab的切换功能，切换事件监听等，需要依赖element模块
});
layui.use('form', function(){
  var form = layui.form();
  });
</script>

</body>
</html>